package com.pan.kang.core;


import com.pan.kang.support.SpringContextUtil;

public abstract class BaseDecoratorInterface<Service> implements DecoratorInterface {

    private DecoratorMapping decoratorMapping;

    private final Service service;

    public BaseDecoratorInterface(Service service) {
        this.decoratorMapping = SpringContextUtil.getBean(DecoratorMapping.class);
        this.service = service;
    }

    public Service getService() {
        return service;
    }
}